import store from '@/store';

//判断是否登录（所有端）
export const judgeLogin = (callback) => {
    let token = uni.getStorageSync('token');
    if (!token) {
        // uni.reLaunch({
        //     url: '/pagesB/login/index'
        // })
        store.commit('SET_ISToLOGIN', true)
    } else {
        callback()
    }
}
